package com.jb.web.bean;

import com.jb.web.bean.event.UIEvent;

import javax.servlet.http.HttpServletRequest;

public class ValueChangeEvent extends UIEvent {
    static final long serialVersionUID = 123123L;


    public ValueChangeEvent(Object pSource, HttpServletRequest request) {
        super(pSource, request);
    }
    Object newValue;
    Object oldValue;
    String propertyName;
    

    public ValueChangeEvent(UIComponentImpl pSource, HttpServletRequest request, String pPropName, Object oldValue, Object newValue) {
        super(pSource,request);
        this.newValue = newValue;
        this.propertyName = pPropName;
        this.oldValue=oldValue;
    }

    public Object getNewValue() {
        return newValue;
    }

    public String getPropertyName() {
        return propertyName;
    }

    public Object getOldValue() {
        return oldValue;
    }

}